package cn.wolfcode.service;

import cn.wolfcode.domain.Employee;
import cn.wolfcode.qo.EmployeeQueryObject;
import com.github.pagehelper.PageInfo;
import org.apache.poi.ss.usermodel.Workbook;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface IEmployeeService {
    void delete(Long id);
    void save(Employee employee, Long[] ids);
    Employee get(Long id);
    List<Employee> listAll();
    void update(Employee employee, Long[] ids);

    PageInfo<Employee> query(EmployeeQueryObject qo);

    Employee login(String username, String password);
    //根据员工id查询权限
    List<String> selectByEidPermission(Long id);
    //根据员工的输入的用户名找数据库是否已经存在
    Employee selectByUername(String username);
    //导出
    Workbook exportXls();
    //导入
    void importXls(MultipartFile file) throws IOException;
    //重置密码
    void updatePassword(Long id);
    //查所有员工
    List<Employee> selectedAll();
}
